package com.corffen.design;

public class MallardDuck extends Duck {

    public MallardDuck() {
        mFlyBehavior = new FlyWithWings();
        mQuackBehavior = new Quack();
    }

    @Override
    protected void display() {
        System.out.println("绿头鸭会 呱呱叫,并且用翅膀飞");
    }
}
